home *** CD-ROM | disk | FTP | other *** search
- Path: news.interpath.net!softbase
- From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: dos.h equivalent in gcc or cc ?
- Date: 18 Apr 1996 14:25:31 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Distribution: inet
- Message-ID: <4l5jcr$de1@news.interpath.net>
- References: <3173B701.41C6@ieec.fcr.es>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Oscar Chic (chic@ieec.fcr.es) wrote:
- : I'm trying to pass arguments to a function with _argv and _argc
- : global variables that Borland 4.5 permits.
- : In Borland you must do an include of dos.h
- : Which is the equivalent in gcc or cc in a UNIX WS ?
- : Which file must I include to do the same ?
-
- This sounds like someone has been bitten by non-standard,
- non-portable usage. It's generally easy to work around things
- like this and bzero() using tricks.
-
- Just declare them and then make them have the same values as
- were passed in through the correct variables.
-
- -*-
-
- int _argc;
- char **argv;
-
- int main(int argc, char **argv) {
-
- _argv = argv; _argc = argc;
- }
-
-